package org.example.elmfront.service.Imp;

import org.example.elmfront.entity.Restaurant;
import org.example.elmfront.mapper.RestaurantMapper;
import org.example.elmfront.service.RestaurantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RestaurantServiceImp implements RestaurantService {
    @Autowired
    private RestaurantMapper restaurantMapper;

    @Override
    public List<Restaurant> findAllRestaurants() {
        return restaurantMapper.findAll();
    }

    @Override
    public Restaurant getRestaurantById(Long id) {
        return null;
    }

}